package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.CategoryMapper;
import com.ruoyi.client.mapper.HomeMapper;
import com.ruoyi.client.pojo.vo.CategoryVo;
import com.ruoyi.client.pojo.vo.HomeCarouselVo;
import com.ruoyi.client.pojo.vo.HomeGoodsVo;
import com.ruoyi.client.service.ICategoryService;
import com.ruoyi.client.service.IHomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：HuaQP
 * @Date：2024/9/18
 */
@Service("ClientHomeServiceImpl")
public class HomeServiceImpl implements IHomeService {
    @Resource(name="ClientHomeMapper")
    private HomeMapper homeMapper;

    @Override
    public List<HomeCarouselVo> getCarouselList() {
        return homeMapper.getCarouselList();
    }

    @Override
    public List<HomeGoodsVo> getHomeGoodsList(int typeId) {
        return homeMapper.getHomeGoodsList(typeId);
    }
}
